package com.example.mrzhou.lvmm.api;

import com.example.mrzhou.lvmm.entity.surround.holiday.Holiday;
import com.example.mrzhou.lvmm.entity.surround.hotel.Hotel;
import com.example.mrzhou.lvmm.entity.surround.scenic.Scenic;

import java.util.Map;

import retrofit2.http.POST;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * Created by Mr.zhou on 2016/10/27.
 */

public interface SurroundService {
    String BASEURL = "http://api3g2.lvmama.com/";

    String SCENIC_URL = "api/router/rest.do?method=api.com.ticket.search.searchTicket&globalLatitude=39.913249&globalLongitude=116.403625&clientTimestamp=1477473358201&lvtukey=89ad3ab73f4530275f4aa0f6ae39197e&osVersion=4.4.2&lvversionCode=65&lvversion=7.7.3&deviceName=HTC%2BX720d&firstChannel=ANDROID&udid=864394010002410&formate=json&secondChannel=YYB";

    @POST(SCENIC_URL)
    Observable<Scenic> getScenicData(@QueryMap Map<String, String> map);

    String HOTEL_URL = "api/router/rest.do?method=api.com.search.searchHotel&globalLatitude=39.913249&globalLongitude=116.403625&clientTimestamp=1477480973239&lvtukey=9bb7a98ec15cac78c0a14227ff4c871f&osVersion=4.4.2&lvversionCode=65&lvversion=7.7.3&deviceName=HTC%2BX720d&firstChannel=ANDROID&udid=864394010002410&formate=json&secondChannel=YYB";

    @POST(HOTEL_URL)
    Observable<Hotel> getHotelData(@QueryMap Map<String, String> map);

    String HOILDAY_URL = "api/router/rest.do?method=api.com.route.search.searchRouteOutbound&globalLatitude=39.913249&globalLongitude=116.403625&clientTimestamp=1477481211998&lvtukey=905a9b3ce22866e32ef11e6ba894ee00&osVersion=4.4.2&lvversionCode=65&lvversion=7.7.3&deviceName=HTC%2BX720d&firstChannel=ANDROID&udid=864394010002410&formate=json&secondChannel=YYB";

    @POST(HOILDAY_URL)
    Observable<Holiday> getHolidayData(@QueryMap Map<String,String> map);
}
